home *** CD-ROM | disk | FTP | other *** search
- //***************************************************************************
- // OATH :: Object-oriented Abstract Type Hierarchy
- //***************************************************************************
- //
- // Copyright (C) 1991, 1990 Texas Instruments Incorporated
- // Permission is granted to any individual or institution
- // to use, copy, modify, and distribute this software,
- // provided that this complete copyright and permission notice
- // is maintained, intact, in all copies and supporting documentation.
- //
- // Texas Instruments Incorporated provides this software "as is"
- // without express or implied warranty.
- //
- //***************************************************************************
-
- Directories
- -----------
- include/oath -- contains the .h include files
- src -- contains the .cc source files
- lib/sun4 -- contains a Makefile to build liboath.a for the sun4 arch
- man/man3 -- contains the OATH manual page sources
- doc -- contains documents on OATH (only one currently)
- test -- contains source code for various contrived test files;
- they may be useful for "seeing" some OATH code
-
-
- Building OATH
- -------------
-
- OATH is designed to be compiled with cfront 2.1 compatible compilers.
- To compile with cfront 2.0, the source will have to be modified.
- At a minimum, all inherited pure virtual functions will have to
- be replicated in the derived classes (2.0 did not allow pure virtual
- functions to be inherited). Bugs in 2.0's overloaded function
- argument matching can also cause occasional problems. I have no
- idea what will be required to compile with g++. At a minimum, the
- iostream.h include file will be needed.
-
-
- Building OATH for a Sun4
- ------------------------
-
- If you are on a sun4 architecture, and have a C++ compiler named CC,
- then simply type 'make' in this directory.
- That will simply 'cd lib/sun4; make library',
- which will build liboath.a in lib/sun4.
- You can then establish a link from wherever to that file (along with
- links from wherever to the include files).
-
- If your C++ compiler is named other than CC, then simply
- change the line CCC = CC to the name of your compiler
- in the lib/sun4/Makefile.
-
- The following compiler warnings can be ignored:
- statement not reached
-
-
- Building OATH for another architecture
- --------------------------------------
-
- Make a directory lib/your_arch and place a Makefile in that
- directory, using the Makefile in lib/sun4 as a base.
- Then type 'make library'.
-
- Then establish the appropriate links to lib/your_arch/liboath.a
-
-
- Porting Guidlines
- -----------------
-
- The preprocessor symbol __STDC__ is tested to determine whether a K&R or ANSI
- preprocessor is being used to decide whether to use # and ## or the old K&R
- way of doing stringization and concatenation. If you have an old preprocessor,
- you probably need do nothing (since __STDC__ should not be defined). If you
- have an ANSI preprocessor, then you may need to use -D__STDC__ in the make if
- your preprocessor doesn't define it.
-
-